package com.orange.templatePatterns;

public class ApplePay extends AbstructPayMent{
    @Override
    public void userApiToPay(int amount) {
        //4引入apple支付api
        System.out.println("引入apple api");
        //5使用apple api查看余额
        System.out.println("查看余额");

        //6判断余额是否充足
        System.out.println("判断中");


        //7调用apple支付的API完成支付
        System.out.println("苹果 Pay " + amount + " yuan");

    }
}
